From aab6fd63f48067313880976037955c7aa32f6092 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 Jan 2012 21:21:40 +0000 Subject: [PATCH] Fix r108185: file transform store op needs 'overwriteDest' --- includes/filerepo/file/File.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 2554af5009..c9dd775a49 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -811,12 +811,13 @@ abstract class File { // FileRepo::store(); getThumbPath() uses a different zone in some subclasses. $backend->prepare( array( 'dir' => dirname( $thumbPath ) ) ); $status = $backend->store( - array( 'src' => $tmpThumbPath, 'dst' => $thumbPath ), + array( 'src' => $tmpThumbPath, 'dst' => $thumbPath, 'overwriteDest' => 1 ), array( 'force' => 1, 'nonLocking' => 1, 'allowStale' => 1 ) ); if ( $status->isOK() ) { $thumb->setStoragePath( $thumbPath ); } else { + var_dump($status->errors); $thumb = $this->transformErrorOutput( $thumbPath, $thumbUrl, $params, $flags ); } } -- 2.20.1